package com.sinosun.autotestmachine.tools.proxy.callback.buddy;

import com.sinosun.mstplib.buddy.AddPolicy;

public class BuddyMsg {
	String arg1;
	String arg2;
	String arg3;
	String arg4;
	AddPolicy ap;
	
	public BuddyMsg() {
		arg1 = arg2 = arg3 = arg4 = new String();
		ap = null;
	}
	
	public void setArg(int tag, String value) {
		switch(tag) {
		case 1:
			arg1 = value;
			break;
		case 2:
			arg2 = value;
			break;
		case 3:
			arg3 = value;
			break;
		case 4:
			arg4 = value;
			break;
		}
	}
	
	public String getArg(int tag) {
		switch(tag) {
		case 1:
			return arg1;
		case 2:
			return arg2;
		case 3:
			return arg3;
		case 4:
			return arg4;
		}
		return null;
	}
	
	public AddPolicy getAddPolicy() {
		return ap;
	}
	
	public void setAddPolicy(AddPolicy ap) {
		this.ap = ap;
	}
}
